<?php

class Application_Model_Guidas extends Zend_Db_Table_Abstract
{
    protected $_name = 'guidas';
    protected $_primary = 'guidaId';
    protected $_rowClass = 'Application_Model_Guida';
    protected $_dependentTables = array('eventos');
    
    public function getGuidaById($id)
    {
        return $this->find($id)->current();
    }
    
    public function getGuidaByIdent($ident)
    {
        $select = $this->select()
                       ->where('guidaIdent = ?', $ident);
        return $this->fetchRow($select);
    }
}

